package alp.starcode.framework.database.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author yanglin
 * @since 2021-10-21
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("apply")
public class Apply extends Model<Apply> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 申请人id
     */
    @TableField("user_id")
    private Integer userId;

    /**
     * 好友id
     */
    @TableField("friend_id")
    private Integer friendId;

    /**
     * 备注
     */
    @TableField("nickname")
    private String nickname;

    /**
     * 看我
     */
    @TableField("lookme")
    private Integer lookme;

    /**
     * 看他
     */
    @TableField("lookhim")
    private Integer lookhim;

    /**
     * 0:'pending',1: 'refuse', 2:'agree',3: 'ignore'
     */
    @TableField("status")
    private Integer status;

    @TableField("create_time")
    private Long createTime;

    @TableField("update_time")
    private Long updateTime;

}
